import { legacy_createStore as createStore, combineReducers } from 'redux';

import homeReducer from './homeReducer'
import carReducer from './carReducer'

const reducer = combineReducers({
	homeReducer,
	carReducer
})

// 获取仓库的类型
export type RootState = ReturnType<typeof reducer>

const store = createStore(reducer)


export default store